package com.yboot.module.system.model.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.yboot.starter.common.core.web.validation.InsertGroup;
import com.yboot.starter.common.core.web.validation.UpdateGroup;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.time.LocalDateTime;

import lombok.Data;

/**
 * 参数表
 * @author yangcs
 * @date 2025-08-29
 */
@Data
public class SysOptionDto implements Serializable {
    private static final long serialVersionUID = 1L;
    /**
     * ID
     */
    @NotBlank(message = "id不能为空", groups = {UpdateGroup.class})
    private String id;
    /**
     * 类别
     */
    @NotBlank(message = "category不能为空", groups = {InsertGroup.class, UpdateGroup.class})
    private String category;
    /**
     * 名称
     */
    @NotBlank(message = "name不能为空", groups = {InsertGroup.class, UpdateGroup.class})
    private String name;
    /**
     * 键
     */
    @NotBlank(message = "code不能为空", groups = {InsertGroup.class, UpdateGroup.class})
    private String code;
    /**
     * 值
     */
    private String value;
    /**
     * 默认值
     */
    private String defaultValue;
    /**
     * 描述
     */
    private String description;
}
